public class SpellCheckResult {
    
    private boolean correct;
    private String before;
    private String after;
    
    public SpellCheckResult(boolean result, String before, String after) {
	
    	this.correct = result;
    	this.before = before;
    	this.after = after;
    }
    
    /**
     * @return true if the word was found
     */
    public boolean isCorrect() {
	return correct;
    }
    
    /**
     * @return the word in the dictionary position before the one being checked, or null if there isn't such a word
     */
    public String getBefore() {
	return before;
    }
    
    /**
     * @return the word in the dictionary position after the one being checked, or null if there isn't such a word
     */
    public String getAfter() {
	return after;
    }
}
